Touch Point
fun TouchPoint(id: Int, state: TouchPoint.State, positionInScreen: Point, positionInWidget: Point = Point.empty(), force: Float = 0.0f, radiusX: Float = 0.0f, radiusY: Float = 0.0f, rotationAngle: Float = 0.0f): TouchPoint
fun TouchPoint(id: Int, state: TouchPoint.State, positionInScreen: Point, positionInWidget: Point = Point.empty(), force: Float = 0.0f, radiusX: Float = 0.0f, radiusY: Float = 0.0f, rotationAngle: Float = 0.0f): TouchPoint
Creates a new instance of TouchPoint with the given parameters.
Since
8.0.0
Parameters
id
The unique identifier of the touch point. All touch events for this touch point must use the same identifier while it is active.
state
The state of the touch point.
position In Screen
The position of the touch point relative to the screen.
position In Widget
The position of the touch point relative to the widget.
force
The force applied at the touch point, in the range of 0..1
, where 0 indicates no pressure and 1 indicates maximum pressure.
radius X
The X-axis radius of the touch ellipse.
radius Y
The Y-axis radius of the touch ellipse.
rotation Angle
The touch rotation angle.